﻿
@{
    ViewData["Title"] = "我的诉讼档案";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section Head{
    <link href="~/layuiadmin/style/style.css" rel="stylesheet" />

    <style>
        .layui-form-select {
            width: 105px;
            display: inline-block;
        }

        .layui-form-select input {
            height: 30px;
        }

        .layui-btn-container {
            margin: 0 !important;
        }

        .layui-input:focus {
            border-color: #1ab394 !important;
        }
    </style>
}


<div id="dMain">
    <div class="layui-row">
        <div class="layui-card">
            <div class="layui-card-header">我的诉讼档案<span class="text-danger">(封面录入→目录录入→提交审核→审核通过→打印封面、目录→图像采集→采集完成→提交审核→审核通过→打印移交清单→生成移交信息)</span></div>
            <div class="layui-card-body">
                <table id="tabData" lay-filter="demo"></table>
            </div>
        </div>
    </div>
</div>

<script src="~/layuiadmin/layui/jquery.min.js"></script>

<script>
    window.onload = function () {
        layui.use('table', function () {
            var table = layui.table;

            table.render({
                elem: '#tabData',
                toolbar: '#toolbarDemo', //开启头部工具栏，并为其绑定左侧模板
                height: 600,
                page: true,
                loading: true,
                cols: [
                    [
                        {
                            type: 'checkbox'
                        }, {
                            field: 'FileNo',
                            title: '临时档号',
                            width: 250,
                            sort: true,
                        }, {
                            field: 'FType',
                            title: '案件类别',
                            width: 120,
                            sort: true
                        }, {
                            field: 'OrgName',
                            title: '立卷单位 ',
                            width: 180,
                            sort: true,
                            align: "center"
                        }, {
                            field: 'DangHao',
                            title: '字号',
                            width: 200,
                            sort: true,
                        }, {
                            field: 'CaseCause',
                            title: '案由',
                            width: 250,
                            sort: true,
                        }, {
                            field: 'LaiYuan',
                            title: '案件来源',
                            width: 250,
                        }, {
                            field: 'Litigant2',
                            title: '当事人',
                            width: 300,
                        }, {
                            field: 'SSR',
                            title: '申诉人',
                            width: 150,
                            align: "center",
                        }, {
                            field: 'BSSR',
                            title: '被申诉人',
                            width: 150,
                        }, {
                            field: 'FZXYRBGR',
                            title: '犯罪嫌疑人/被告人',
                            width: 150,
                        }, {
                            field: 'Lawyer',
                            title: '申请人',
                            width: 150,
                        }, {
                            field: 'LawyerUnit',
                            title: '其他当事人',
                            width: 150,
                        }, {
                            field: 'UnDepart',
                            title: '终审法院',
                            width: 200,
                        }, {
                            field: 'Undertaker',
                            title: '承办人',
                            width: 150,
                        }, {
                            field: 'Judge1',
                            title: '检察员',
                            width: 150,
                        }, {
                            field: 'Officer',
                            title: '书记员',
                            width: 150,
                        }, {
                            field: 'DanWei',
                            title: '主办单位',
                            width: 180,
                        }, {
                            field: 'RecordDate',
                            title: '收案日期',
                            width: 100,
                            align: "center",
                            sort: true,
                        }, {
                            field: 'SettleDate',
                            title: '结案日期',
                            width: 100,
                            align: "center",
                            sort: true,
                        }, 
                        {
                            field: 'Result1',
                            title: '处理结果',
                            width: 350,
                        }, {
                            field: 'Result2',
                            title: '办理结果',
                            width: 300,
                        }, {
                            field: 'KeptFileDate',
                            title: '归档日期',
                            width: 100,
                            align: "center",
                            sort: true,
                        }, {
                            field: 'PageCount',
                            title: '页数',
                            width: 100,
                            align: "center",
                            sort: true,
                        }, {
                            field: 'FTermName',
                            title: '期限',
                            width: 100,
                            align: "center",
                            sort: true,
                        }, {
                            field: 'Secure',
                            title: '密级',
                            width: 100,
                            align: "center",
                            sort: true,
                        }
                    ]
                ],
                data: [
                    {
                        "FileNo": "1",
                        "FType": "2",
                        "OrgName": "3",
                        "DangHao": "4",
                        "CaseCause": "5",
                        "LaiYuan": "6",
                        "Litigant2": "7",
                        "SSR": "8",
                        "BSSR": "9",
                        "FZXYRBGR": "10",
                        "Lawyer": "11",
                        "LawyerUnit": "12",
                        "UnDepart": "13",
                        "Undertaker": "14",
                        "Judge1": "15",
                        "Officer": "16",
                        "DanWei": "17",
                        "RecordDate": "18",
                        "SettleDate": "19",
                        "Result1": "20",
                        "Result2": "21",
                        "KeptFileDate": "22",
                        "PageCount": "23",
                        "FTermName": "24",
                        "Secure": "25",
                    }
                ]
            });
        });

        layui.use('laydate', function () {
            var laydate = layui.laydate;

            //执行一个laydate实例
            laydate.render({
                elem: '#starYear', //指定元素
                value: '1959',
                type: 'year',
                theme: 'molv'
            });

            laydate.render({
                elem: '#endYear', //指定元素
                value: '2020',
                type: 'year',
                theme: 'molv'
            });
        });

        $("#form2").hide();
        $("#btn-js-hide").click(function () {
            $("#form2").slideToggle();
        });
        $(window).click(function () {
            if ($('.jpqd-click').css('display') != 'block') {
                $('.jpqd-click').hide();
            } else if ($('.jptd-click').css('display') != 'block') {
                $('.jptd-click').hide();
            }

        });
        $("#zhjs").click(function () {
            layer.open({
                type: 2,
                title: "综合检索",
                area: ['900px', '480px'],
                content: ['../../../views/template/Litigation-search.html', 'no'],
                btn: ['检索', '关闭'],
                btn1: function (index, layero) {
                }
            });
        });
    }
</script>

<script type="text/html" id="toolbarDemo">
    <div class="MenuManager-title"></div>
    <div class="layui-btn-container">
        <form id="form2" class="layui-form" style="display: none;">
            <div class="layui-form-item">
                <select name="ddlFlag2" id="ddlFlag2">
                    <option value="0">未提交</option>
                    <option value="1">封面待审核</option>
                    <option value="2">封面不通过</option>
                    <option value="3">待扫描</option>
                    <option value="4">图片待提交</option>
                    <option value="5">图片待审核</option>
                    <option value="6">图片不通过</option>
                    <option value="7">案卷待移交</option>
                </select>

                <select name="ddlFType" id="ddlFType">
                    <option value="全部">案卷类别</option>
                    <option value="民事行政">民事行政</option>
                    <option value="公益诉讼">公益诉讼</option>
                    <option value="刑事诉讼">刑事诉讼</option>
                </select>

                <input name="txtFileNo" id="txtFileNo" placeholder="档号" type="text" class="layui-input" style="width: 150px;height: 30px;display: inline-block;" />

                <input type="text" class="layui-input" id="starYear" placeholder="开始年度" style="width:85px;display: inline-block;height: 30px;">
                <label style="font-size: 13px;color: #555;">至</label>
                <input type="text" class="layui-input" id="endYear" placeholder="结束年度" style="width:85px;display: inline-block;height: 30px;">

                <select name="ddlFTerm" id="ddlFTerm">
                    <option value="-- 期限 --">-- 期限 --</option>
                    <option value="1">永久</option>
                    <option value="2">长期</option>
                    <option value="2">60年</option>
                    <option value="3">短期</option>
                    <option value="3">30年</option>
                </select>

                <input name="txtAY" id="txtAY" placeholder="案由" type="text" class="layui-input" style="width: 150px;height: 30px;display: inline-block;" />
                <input name="txtDSR" id="txtDSR" placeholder="当事人" type="text" class="layui-input" style="width: 150px;height: 30px;display: inline-block;" />
                <a class="layui-btn layui-btn-sm" style="height: 30px;margin-top: -3px;margin-right: 0;">快速检索</a>
                <a class="layui-btn layui-btn-sm" style="height: 30px;margin-top: -3px;">综合检索</a>
            </div>
        </form>

        <div class="layui-btn-container">
            <button class="layui-btn layui-btn-sm" lay-event="getCheckData" id="btn-js-hide" onclick="$('#form2').slideToggle()">检索</button>
            <button class="layui-btn layui-btn-sm" lay-event="isAll">批量目录打印</button>
            <button class="layui-btn layui-btn-sm" id="jpqd" lay-event="jpqd" onclick="$('.jptd-click').fadeOut();$('.jpqd-click').fadeToggle()">卷皮全打<i class=" layui-icon layui-icon-triangle-d"></i></button>
            <ul class="jpqd-click jpyck">
                <li><a href="#">刑事诉讼新卷皮打印</a></li>
                <li><a href="#">民事行政新卷皮打印</a></li>
                <li><a href="#">公益诉讼卷皮打印</a></li>
                <li><a href="#">刑事诉讼旧卷皮打印</a></li>
                <li><a href="#">民事行政旧卷皮打印</a></li>
            </ul>
            <button class="layui-btn layui-btn-sm" id="jptd" lay-event="jptd" onclick="$('.jpqd-click').fadeOut();$('.jptd-click').fadeToggle()">卷皮套打<i class="layui-icon-triangle-d layui-icon"></i></button>
            <ul class="jptd-click jpyck">
                <li><a href="#">刑事诉讼新卷皮打印</a></li>
                <li><a href="#">民事行政新卷皮打印</a></li>
                <li><a href="#">公益诉讼卷皮打印</a></li>
            </ul>
            <button class="layui-btn layui-btn-sm" lay-event="btnTXCJ">图像采集</button>
            <button class="layui-btn layui-btn-sm" lay-event="btnTPTJ">图片提交审核</button>
        </div>
    </div>
    <div class="layui-inline layui-inline-secate">
        <input class="layui-input" name="id" id="test-table-demoReload" autocomplete="off" placeholder="搜索" data-type="reload">
    </div>
</script>